﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Layans.Data
{
    public class PageComment
    {
        public int Id { get; set; }

        [Required]
        [StringLength(5000, MinimumLength = 2, ErrorMessage = "полето трябва да е минимум 2 и максимум 5000 символа")]
        public int PageComments { get; set; }

        public string AuthorId { get; set; }

        public virtual User Name { get; set; }

        public virtual PagePic Pic { get; set; }

        public string Comment { get; set; }
    }
}
